
public class Person {

	private String first, last;
	
	public Person(String _first, String _last){
		this.first = _first;
		this.last = _last;
	}	
		
	//public boolean equals(Person o)
	public boolean equals(Object o)
	{
		Person p = (Person)o;
		return p.first.equals(this.first) && p.last.equals(this.last);
	}
		
	public int hashCode(){
		return 31 * this.first.hashCode() * this.last.hashCode();
	}
}
